#include<iostream>
using namespace std;
const int MAX = 1e6 + 10;
int arr[MAX+100];
void fun(int n)
{
	int sum = n;
	while (n)
	{
		sum += n % 10;
		n /= 10;
	}
	arr[sum] = 1;
}
int main()
{
	memset(arr, 0, sizeof(arr));
	for (int i = 1; i < MAX; i++)
	{
		fun(i);
		if (!arr[i])
		{
			cout << i << endl;
		}
	}
	return 0;
}